﻿<!--{inc(header.view.html)}-->

<div class="header">    
  
                       <div class="nav">
	                                 <ul id="nav_list">
                                                 <li><a href="#" class="nav_icon" target="mainframe">订单列表</a></li>
                                                
	                                 </ul>
                       </div>
                
</div>



<div id="content">
                   <h1>订单列表</h1>

                  <div>
                                    <div class="tips_show"><img  src="{$web_view_dir}style/images/light.gif" align="absmiddle" /> <b>提示: </b>
                                                                  <span ></span>
                                    </div>




<style type="text/css">
.search_box {
padding:10px;
vertical-align:middle;
}
.search_box .l {
float:left;
vertical-align:middle;
}
.search_box .r {
float:right;
}
</style>
                                   
                                   
                                   
<form  method="post" action="<!--{url('admin/?app=do&act=order')}-->" >
<div class="search_box">
<div class="l"><img  src="{$web_view_dir}style/images/it_nav.gif" align="middle">
请输入您要搜索的订单号或用户名：
<input name="keyword" value="{$keyword}" id="keyword" type="text" /> 
<select name="type"> 
<option value="1" <!--{if ($searchtype==1) }-->selected<!--{/if}-->>订单号</option> 
<option value="2" <!--{if ($searchtype==2) }-->selected<!--{/if}-->>用户名</option> 
</select> 
<select name="status">
<option value="false" <!--{if ($status=='false') }-->selected<!--{/if}-->>订单状态不限</option> 
<option value="1" <!--{if ($status=='1') }-->selected<!--{/if}-->>已支付订单</option> 
<option value="0" <!--{if ($status=='0') }-->selected<!--{/if}-->>未支付订单</option> 
</select> 
<input name="bottom" type="submit" id="bottom" value="搜索" class="buton"/>
</div>

<div class="r">

</div>

</div>
</form>

<div class="clear"></div>
                      
                                 
     
<table width="100%" cellspacing="0" cellpadding="4" border="0" align="center"  class="table_style">
<tbody>
<tr>
      <td width="10%" class="bold">订单号</td>
      <td width="11%" class="bold">顾客称呼</td>
      <td width="13%" class="bold">帐号</td>
      <td width="16%" class="bold">联系手机</td>
      <td width="14%" class="bold">订单日期</td>
      <td width="9%" class="bold">支付情况</td>
      <td width="9%" class="bold">发货与否</td>
      <td width="20%" align="center" class="bold">管理</td>

</tr>


<!--{if (empty($lw_data)) }--> 
<tr>
<td colspan="10">暂时还没有任何订单信息！<BR>
可能是您还没有<a href="<!--{url('admin/?app=prot&act=add')}-->">添加产品</a>，所有用户无法购买产品呢!</td>
</tr>
<!--{/if}-->


<!--{if (!empty($lw_data)) }-->
<!--{foreach($lw_data as $_key => $_value )}-->

<?php
if(!isset($value.qq)) { $value.qq=''; }
?>

<tr  onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">
<td >{$_value.id}</td> 
<td >{$_value.truename}</td> 
<td >{$_value.username}</td>
<td >{$_value.mobphone}<br/><!--{if ($_value.oicq!='')}--><a target=blank href=tencent://message/?uin={$_value.oicq}&Site=www.phpscup.com&Menu=yes title="点此QQ联系">{$_value.oicq}</a><!--{/if}--></td>
<td >{$_value.posttime|dateymdgis}</td> 
<td ><!--{if ($_value.ifpay==1)}--><font color=blue>已付款(时间：{$_value.paytime|dateymdgis})</font><!--{elseif ($_value.status==0)}-->已取消<!--{else}--><font color=red>等待付款</font><!--{/if}--></td>
<td ><?php if ($_value.ifsend) { ?>已经发货 <?php } else { ?>未发货<?php } ?></td> 
<td align="center" >
<a href="?app=do&act=ordercontent&id={$_value.id}" >查看</a><br/>
<!--{if ($_value.ifpay!=1 && $_value.status!=0)}--> 
<a href="?app=do&act=confirmorder&id={$_value.id}"  onClick="return confirm('您确认已经收到改款项嘛？');" >确认付款</a><br/>  
<a href="?app=do&act=deleteorder&id={$_value.id}"  onClick="return confirm('您确认要删除该订单吗？');" >删除</a><br/> 
<!--{else}-->
----
<!--{/if}-->
</td>
</tr> 


 <!--{/foreach}--> 
<!--{/if}--> 


<style type="text/css">

.p_bar {
margin-top:5px;
}
.p_info {
border:1px solid #CCCCCC;
margin:0 3px;
padding:3px 5px;
text-align:center;
}
.p_curpage {
border:1px solid #CCCCCC;
color:#FF0000;
font-weight:bold;
margin:0 2px;
padding:3px 5px;
text-align:center;
}

.p_num  {
border:1px solid #CCCCCC;
margin:0 3px;
padding:3px 5px;
text-align:center;
}
.p_redirect {
border:1px solid #CCCCCC;
margin:0 3px;
padding:3px 5px;
text-align:center;
}

a {
color:#003366;
text-decoration:none;
}


</style>

<tr>
	<td colspan="10">
    <div class="p_bar">
    <span class="p_info">Total:&nbsp;<b>{$lw_page.total}</b>&nbsp;&nbsp;共{$lw_page.curr.num}/{$lw_page.totalpage}页</span>
    <a class="p_num" href="{$lw_page.head}">首页</a>
    <a class="p_num" href="{$lw_page.up}">&lt;&lt;</a>
    <a class="p_num" href="{$lw_page.up}">上一页</a>
    <span class="p_curpage">{$lw_page.curr.num}</span>
    <a  class="p_num" href="{$lw_page.down}">下一页</a>
    <a  class="p_num" href="{$lw_page.down}">&gt;&gt;</a>
    <a  class="p_num" href="{$lw_page.foot}">末页</a>    
    
    </div>
    </td>
</tr>


</tbody>
</table>
                        
                                 
                                 
                                 
                                 
                                 
                                 
                                 
                                 
                                 
                                 
                                 

                 </div>

</div>



<!--{inc(footer.view.html)}-->